import request from '@/utils/request'

export function getArticleListApi(params) {
  return request({
    url: '/admin/articles/all',
    method: 'get',
    params
  })
}

export function deleteArticleListApi(params) {
  return request({
    url: '/admin/articles/all',
    method: 'delete',
    data: params
  })
}

export function updateArticleApi(params) {
  return request({
    url: '/admin/articles',
    method: 'put',
    data: params
  })
}
export function updateToppingStatusApi(params) {
  return request({
    url: '/admin/articles',
    method: 'patch',
    data: params
  })
}
